import { Injectable } from "@nestjs/common";

@Injectable()
export class HelloService{
  fetch(id: string): string {
    return `hello Get 传递参数为: ${id}`
  }

  // 创建
  save(id, name, message): any {
    return {id, name, message}
  }

  update(id: string, message: string): string {
    return `hello Patch 路径地址id:${id} 传递信息:${message}`;
  }

  remove(id: number): string {
    return `hello delete 删除id为 ${id}`;
  }
}
